# # a = 2
# # fl = 3.456
# # name = "Alex"
# # flag = True
# # print(name, fl, flag)
# #
# # a = 2
# # b = 3
# # print(a, "+", b, "=", a + b, sep="")
# a = int(input())
# b = int(input())
# print(a, "+", b, "=", a + b, sep=" ")

# a = int(input("ведите кол-во секунд: "))
# b = int(a / 60)
# print("в минутах это будет:", a // 60, "min", a%60, "cek", sep=" ")

# a = int(input())
# b = int(a * 60)
# print(b, "cek", sep=" ")

# print(-11//3)

# a = float(input("ведите радиус окружности: "))
# r = float(2*3.14159*a)
# s = float(13.14159*a**2)
# print("радиус равен: ", r, "см", "   площадь равнa: ", s, "cм", sep=" ")

# x = 123.456789
# y = 987.654321
# print("ра-ля-ля: {:10.3f} - тро-ло-ло {:8.3f}".format(x, y))

# name = str(input("введи своё имя: "))
# print("Hello, ", name, "!", sep="")

# print(f"Hello, {name}!")

# z = int(input("введи целое число: "))
# a = z + 1
# b = z - 1
# print(f"cледующее число после {z} это число {a}.")
# print(f"перед числом {z} идёт число {b}.")

# z = int(input("введи целое число яблок: "))
# v = int(input("введи целое число школьников: "))
# a = z // v
# print(f"в корзине останется {a} яблок(а/ов).")
#
# z = int(input("введи целое число яблок: "))
# v = int(input("введи целое число школьников: "))
# # a = z % v
# print(f"в корзине останется {a} яблок(а/ов).")

# t = int(input("введи скорость: "))
# v = int(input("введи время: "))
# l = 108
# a = v * t
# print(f"{a%109}km")


# a = int(input())
# if a < 18:
#     print('ребёнок')
# elif a > 60:
#     print('старик')
# else:
#     print('Bзрослый деепасобный человек')

# a = int(input())
# if (a < 18) and (a > 10):
#     print('ребёнок')
# elif (a > 60) or (a < 100):
#     print('старик')
# else:
#     print('Bзрослый деепасобный человек')

# a = 100
# b = 1
# while b < a:
#     print('a > b')
#     b = b + 5
#     if b == 20:
#         break
# print('dc~')

# num = 0
# for i in a:
#     num = num + i
# print(num) ????????

# n = 0
# sun = 0
# list [1, 2, 3, 4, 5, 6, 7, 8, 9, sek, 0, 234567, 98765432]
# while True:
#     if list[n] % 2 == 0:
#         sum = sum + list[n]
#     n += 1
#     if list[n] == 'sek'

# a = int(input())
# b = int(input())
# c = int(input())
# if a == b == c:
#     print(3)
# elif a == b or a == c or b == c:
#     print(2)
# else:
#     print(0)

# from turtle import *
# rep = 8
# speed(10)
# a = 30
# for i in range(rep):
#     forward(6 * a)
#     right(120)
# up()
# for x in range(- 10 * a, 10 * a, a):
#     for y in range(- 10 * a, 10 * a, a):
#         goto(x, y)
#         dot(3, 'red')

# from turtle import *
# rep = 4
# speed(10)
# k = 30
# for i in range(rep):
#     forward(10 * k)
#     right(90)
# up()
# for x in range(- 10 * k, 10 * k, k):
#     for y in range(- 10 * k, 10 * k, k):
#         goto(x, y)
#         dot(3, 'red')

# a = int(input())
# b = int(input())
# c = int(input())
# if a**2 + b**2 == c**2:
#     print(yes)

# n = int(input())
# for i in range(1, n):
#     if i ** 2 <= n:
#         print(i ** 2)
#     else:
#         break

# n = int(input())
# for i in range(2, n):
#     if n % i == 0:
#         print(i)
#         break

# n = int(input())
# while n != 0:
#     print(n)
#     n = int(input())

# n = int(input())
# for i in range(100, 1000):
#     a = i // 100
#     b = (i % 10) // 10
#     c = i % 10
#     if (a + b + c) == n:
#         print(i)

# a = int(input())
# n = int(input())
# for i in range(100, 1000):
#     a = i // 1000
#     b = (i % 1000) // 100
#     c = (i % 100) // 10
#     d = i % 10
#     if (a == d) and (b == c):
#         print(i)
# sum = 0
# n = int(input())
# a = 1
# for i in range(1, n + 1):
#     a = a * i
#     sum += a
# print(sum)

# A = int(input())
# B = int(input())
# for i in range(A, B + 1):
#     a = i // 1000
#     b = (i % 1000) // 100
#     c = (i % 100) // 10
#     d = i % 10
#     if (a==b==c!=d) or (a==b==d!=c) or (a==c==d!=b) or (d==b==c!=a):
#         print(i)

# a = 0
# n = int(input())
# while n != 0:
#     n = int(input())
#     a += 1
# print(a-1)

# print('x, y, z, w')
# for x in range(2):
#     for y in range(2):
#         for z in range(2):
#             for w in range(2):
#                 if ((x == (y <= z)) and :

# r = int(input())
# p = 3.14
# print(p*r**2)
# print(2*p*r)

# n = int(input())
# if 100 <= n <= 999:
#     a = n // 100
#     b = (n % 100) // 10
#     c = n % 10
#     print(a, b, c, sep=" ")

# import math
# x = input()
# y = input()
# x1 = float(x.split(' ')[0])
# y1 = float(x.split(' ')[1])
# x2 = float(y.split(' ')[0])
# y2 = float(y.split(' ')[1])
# l = math.sqrt((x2 - x1)**2 + (y2 - y1)**2)
# print (l)

# c = 1
# pi = 4/1
# for i in range(3, 20, 2):
#     c += 1
#     if c % 2 != 0:
#         z = 1
#     else:
#         z = -1
#     pi = pi + (4/1) * z
# print(pi)

# n = int(input())
# for i in range(0, 50):
#     a = n
#     print(n, sep="")

# a = int(input())
# b = int(input())
# print(b // a)
#
# h1 = int(input()) * 3600
# m1 = int(input()) * 60
# s1 = int(input())
#
# h2 = int(input()) * 3600
# m2 = int(input()) * 60
# s2 = int(input())
#
# z = (h2 - h1) + (m2 - m1) + (s2 - s1)
# print(z)

# n = int(input())
# if 100 <= n <= 999:
#     a = n // 100
#     b = (n % 100) // 10
#     c = n % 10
#     print(a + b + c)

# h = int(input())
# m = int(input())
# s = int(input())
# a = (h + m + s)
# b = (a // 2) + 1
# print(b)

# for x in range(99, 9, -1):
#     if ((x < 25) or not (x > 58)) and (x % 2 == 0):
#         print(x)
#         break

# a = 'abcdefghijklmnopqrstuvwxyz'
# print(a[::3])

# № 19.12.2023

# a = [1, 2, 2, 3, 3, 3, 4]
# for i in range(len(a)):
#     if a[i] % 2 == 0:
#         print(a[i])

# list = [1, -2, 3, -4, 5]
# n = 0
# for i in range(len(list)):
#     if list[i] > 0:
#         n+=1
# print(n)

# a = []
# l = [1, 5, 2, 4, 3]
# for i in range (len(l)):
#     if l[i] > l[i - 1]:
#         a.append(l[i])
# print(a)

# l = [-1, 2, 3, -1, -2]
# for i in range(len[l]):
#     if ((l[i] > 0) and (l[i + 1] > 0)) or ((l[i] < 0) and (l[i + 1] < 0)):
#         print(l[i], l[i + 1])
#         break

ind = 0
a = [1, 2, 3, 2, 1]
n = a[0]
for i in range(1, len(a)):
    if a[i] >n:
        n = a[i]
        ind = i
print(n, ind)





























